package com.cristina.attention.service;

import com.cristina.attention.entity.Friend;
import com.cristina.attention.entity.User;
import com.cristina.attention.entity.vo.AddFriendVo;
import com.cristina.attention.mp.base.BaseService;

import java.util.List;

/**
 * @Author superman
 * @Date 2021/11/13 18:52
 **/
public interface FriendService extends BaseService<Friend> {

    /**
     * 查询用户拥有的好友
     * @param originId
     * @return
     */
    List<User> findFriendBelonging(Long originId);

    /**
     * 添加好友
     * @param addFriendVo
     * @return
     */
    boolean addFriend(AddFriendVo addFriendVo);
}
